package com.portal.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 文件信息
 *
 * @author portal
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysFile implements Serializable {
    private Long id;
    /**
     * 文件名称
     */
    private String fileOriginalName;
    /**
     * 文件地址
     */
    private String fileUrl;
    private String fileType;// 文件类型
    private String archiveType; // 归档类别
    private Long fileSize;
    private Long userId;
    private String userName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;
    private Integer del;

    private Long serializableId;
}
